package com.laf.manage.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("新增评论")
public class CommentsDTO {

    @ApiModelProperty("动态id")
    @NotNull(message = "动态id不能为空")
    private Long dynamicId;


    @ApiModelProperty("评论内容")
    @NotBlank(message = "评论内容不能为空")
    private String message;


}
